home *** CD-ROM | disk | FTP | other *** search
/ Trusted Irix /B 4.0.4 / Trusted-Irix B-4.0.1.iso / dist / eoe1.idb / etc / profile.z / profile
Text File  |  1992-04-03  |  794b  |  41 lines

  1. #
  2. # /etc/profile - Default settings for all sh users
  3. #
  4. # This script is executed before $HOME/.profile when an sh user logs in
  5. # or invokes /bin/su with the `-' option.
  6. #
  7.  
  8. # Ignore keyboard interrupts.
  9. trap ""  2 3
  10.  
  11. # Set the umask so that newly created files and directories will be readable
  12. # by others, but writable only by the user.
  13. umask 022
  14.  
  15. case "$0" in
  16. *su )
  17.     # Special processing for ``su -'' could go here.
  18.     ;;
  19. -* )
  20.     # This is a first time login.  Notify the user if the account's 
  21.     #   password will expire within the next week.
  22.     showpwage
  23.  
  24.     # Allow the user to break the Message-Of-The-Day only.
  25.     trap "trap '' 2"  2
  26.     cat -s /etc/motd
  27.     trap "" 2
  28.  
  29.     # Print lastlog message
  30.     /bin/showlastlogin
  31.  
  32.     # Check for mail.
  33.     if /bin/mail -e
  34.     then
  35.         echo "you have mail"
  36.     fi
  37.     ;;
  38. esac
  39.  
  40. trap  2 3
  41.